/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.bizfty.api.apimanager.models;

import com.bizfty.api.commons.models.BasicEntity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Embedded;
import javax.persistence.Table;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * 模型领域模型
 *
 * @author johns
 */
@Entity
@Table(name = "T_API_DOMAIN")
@XmlRootElement
//@Inheritance(strategy = InheritanceType.SINGLE_TABLE)
//@DiscriminatorColumn(name = "DT", discriminatorType = DiscriminatorType.STRING)
//@DiscriminatorValue("P")
public class Domain extends BasicEntity {

    /**
     * 名称
     */
    @Column(name = "NAME", nullable = true, length = 255)
    private String name;
    /**
     * 备注
     */
    @Column(name = "REMARK", nullable = true, length = 255)
    private String remark;
    /**
     * 数据类型
     */
    @Embedded
    private DataType dataType;
    
    /**
     * 名称
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * 名称
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 备注
     * @return the remark
     */
    public String getRemark() {
        return remark;
    }

    /**
     * 备注
     * @param remark the remark to set
     */
    public void setRemark(String remark) {
        this.remark = remark;
    }

    /**
     * 数据类型
     * @return the dataType
     */
    public DataType getDataType() {
        return dataType;
    }

    /**
     * 数据类型
     * @param dataType the dataType to set
     */
    public void setDataType(DataType dataType) {
        this.dataType = dataType;
    }
    
}
